
<%@ page import="baratopradedeu.Cupom" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'cupom.label', default: 'Cupom')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>            
        </div>
        <div class="body">
            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="cupom.id.label" default="Id" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: cupomInstance, field: "id")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="cupom.cliente.label" default="Cliente" /></td>
                            
                            <td valign="top" class="value"><g:link controller="cliente" action="show" id="${cupomInstance?.cliente?.id}">${cupomInstance?.cliente?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="cupom.dataCompra.label" default="Data Compra" /></td>
                            
                            <td valign="top" class="value"><g:formatDate format="dd/MM/yyyy" date="${cupomInstance?.dataCompra}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="cupom.dataValidade.label" default="Data Validade" /></td>
                            
                            <td valign="top" class="value"><g:formatDate format="dd/MM/yyyy" date="${cupomInstance?.dataValidade}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="cupom.oferta.label" default="Oferta" /></td>
                            
                            <td valign="top" class="value"><g:link controller="oferta" action="show" id="${cupomInstance?.oferta?.id}">${cupomInstance?.oferta?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="cupom.pedido.label" default="Pedido" /></td>
                            
                            <td valign="top" class="value"><g:link controller="pedido" action="show" id="${cupomInstance?.pedido?.id}">${cupomInstance?.pedido?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="cupom.statusCupom.label" default="Status Cupom" /></td>
                            
                            <td valign="top" class="value"><g:formatBoolean boolean="${cupomInstance?.statusCupom}" /></td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form action="listCupomCliente">
                    <span class="button">
					  <g:submitButton name="listCupomCliente" class="list" value="Listar" />          
					</span>
                </g:form>
            </div>
        </div>
    </body>
</html>
